<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">  
<title>商品列表</title> 
<link rel="stylesheet" type="text/css" href="/Public/css/TableDisplay.css?v=<?=C("VERSION")?>">
<link rel="stylesheet" type="text/css" href="/Public/css/Layout.css?v=<?=C("VERSION")?>">
<link rel="stylesheet" type="text/css" href="/Public/css/Theme.css?v=<?=C("VERSION")?>">
<link rel="stylesheet" type="text/css" href="/Public/css/DefaultUI.css?v=<?=C("VERSION")?>">
<link rel="stylesheet" type="text/css" href="/Public/css/PrintUI.css?v=<?=C("VERSION")?>">
<script type="text/javascript" src="/Public/js/JQuery.js?v=<?=C("VERSION")?>"></script>
<script type="text/javascript" src="/Public/js/JQueryUI.js?v=<?=C("VERSION")?>"></script>
<script type="text/javascript" src="/Public/js/SitemapHeader_INC.js?v=<?=C("VERSION")?>"></script>
<script type="text/javascript" src="/Public/js/ViewParentsProduct.js?v=<?=C("VERSION")?>"></script>

<script>
	var BaseUrl = "__APP__"; 
</script>
</head>
<body>
<div id="Header" style="width: 1350px;">  
<div class="Inner">    
<div class="Logo Right"></div>  
<div class="LabelButton Right" onclick="window.location.href ='__APP__/Login/logout'">退出</div><div class="LabelButton Right">帮助</div>
<div class="Label Right"><?=$_SESSION['UserName']?></div>
<a class="Application" href="__APP__/Index">首页</a>
<div class="Label LabelNoPadding">&gt;</div>
<a class="Application" href="">商品列表</a></div>
</div>
<div id="Content" class="MenuColapsed" style="min-height: 568px; width: auto;">  
<div class="Inner">    
<table class="MainLayout" id="MainLayoutTable" cellspacing="0" cellpadding="0" border="0" style="height: 568px; min-height: 568px;">      
<tbody>
<tr>        
<td valign="top" id="MainLayout" class="MainLayoutCell" style="max-height: 100%;">
<table style="width: 100%" cellpadding="0" cellspacing="0" border="0">
<thead class="MainLayoutHeader" id="MainLayoutHeader">
<tr>  
<td class="MainLayoutActions" style="height: 1px;">
<div class="ActionBigLabel" id="ColumnSearchLabel"> 
<div style="float: left; margin-top: 3px; margin-right: 3px;"></div></div>
<div class="ActionButtonContainer" title="添加鞋靴"><a id="" class="ActionButton ActionButtonExcel" href="__APP__/ImportSheet/Edit/ImportSheetID/<?=$TableList[0][ID]?>"><div class="Title">添加鞋靴</div></a></div>

<div class="ActionBigLabel" id="ColumnSearchLabel"> 
<div style="float: left; margin-top: 3px; margin-right: 3px;"></div></div>
<div class="ActionButtonContainer" title="添加服装"><a id="" class="ActionButton ActionButtonExcel" href="__APP__/ClothingImportSheet/Edit/ImportSheetID/<?=$TableList[0][ID]?>"><div class="Title">添加服装</div></a></div>
<div class="ActionBigLabel" id="ColumnSearchLabel">
<div style="float: left; margin-top: 3px; margin-right: 3px;"></div></div>
<div class="ActionButtonContainer" title="导出"><a id="" class="ActionButton ActionButtonExcel" onclick="return Formsubmit(document.ExportProductForm);"><div class="Title">导出</div></a></div>


<form name="SearchForm" id="SearchForm" action="__APP__/ImportSheet/SearchParentsProduct" method="GET"> 
<div class="ActionBigLabel" id="ColumnSearchLabel"><input style="width:200px; margin-left:100px !important;"  name="Product" type="text" id="Product" value="商品名称" /> </div>
<div class="ActionButtonContainer" title="搜索"><a id="" class="ActionButton ActionButtonAttention" onClick="Formsubmit(document.SearchForm);"><div class="Title">搜索</div></a></div>
</form>
</td>
</tr>

<tr>
<td class="MainLayoutActions" style="height: 1px;">
<span style="font-size:14px;text-shadow:Red;font-family:'黑体';">使用提示：在本工具点击“添加鞋靴”按钮创建商品信息后，在本页面导出要上传的商品文件。然后在亚马逊卖家后台库存-批量上传上传商品-库存文件 处上传。即可完成商品上传。</span>
</td>
</tr>


</thead>
</table>
<form name="ExportProductForm" id="ExportProductForm" action="__APP__/ExportImportSheet/Export" method="GET"> 
<table class="Table Fixed" name="XMLData" id="TableView" cellpadding="0" cellspacing="0"><thead> 
<tr>
	<input name="ShoesProductID_List" id="ShoesProductID_List" type="hidden" value="">
	<input name="ClothingProductID_List" id="ClothingProductID_List" type="hidden" value="">
	<th class="Parent" colspan="2" style="width: 22px; padding: 0px; min-width: 22px; max-width: 22px;"><input id="checkAllProduct" name="checkAllProduct" type="checkbox" onclick="SelectAllShoes(this);">鞋靴 | <input id="checkAllProduct" name="checkAllProduct" type="checkbox" onclick="SelectAllClothing(this);">服装</th>

	<?php if($_SESSION['UserName'] != "ymx688"){?>
	<th class="Parent" style="width: 22px; padding: 0px; min-width: 22px; max-width: 22px;">&nbsp;</th>
	<?php }?>
	<th class="Parent" style="width: 22px; padding: 0px; min-width: 22px; max-width: 22px;">&nbsp;</th>
	<th class="Parent" style="width: 65px; padding: 0px; min-width: 65px; max-width: 65px;">&nbsp;</th>
	<th class="Parent" style="width: 22px; padding: 0px; min-width: 22px; max-width: 22px;">&nbsp;</th>



	<foreach name="TableFieldsInfo" item="vo">
	<th id="Column0" class="Parent" style="text-align: center; white-space: normal;">
	<div id="ews-column-sort-ID"><span class="Title">{$vo.Alias}</span></div>
	</th>
	</foreach>

	<th id="Column0" class="Parent" style="text-align: center; white-space: normal;">
	<div id="ews-column-sort-ID"><span class="Title">类目</span></div>
	</th>
</tr>
</thead>
<tbody>
<?php for($i=0; $i <count($TableList); $i++){?>
<tr>

<td style="width: 22px; padding: 0px 0px 0px 5px; min-width: 22px;">
<div class="LayerControl">
<?php if($TableList[$i]['ProductTyle'] == "Shoes"){?>
<input id="Shoes_<?=$TableList[$i]['ID'];?>" name="Shoes_<?=$TableList[$i]['ID'];?>" value="<?=$TableList[$i]['ID'];?>" onclick= "ShoesProduct_Toggle(this);"type="checkbox"></div>
<?php } else{?>

<input id="Clothing_<?=$TableList[$i]['ID'];?>" name="Clothing_<?=$TableList[$i]['ID'];?>" value="<?=$TableList[$i]['ID'];?>" onclick= "ClothingProduct_Toggle(this);"type="checkbox"></div>
<?php }?>
</td>

<td style="white-space: nowrap; width: 22px; padding: 0px 0px 0px 5px; min-width: 22px;">  
<?php if($TableList[$i]['ProductTyle'] == "Shoes"){?>
<div class="LayerControl"><a href="__APP__/ImportSheet/Edit2/ImportProductSheetID/<?=$TableList[$i]['ID'];?>/List/1">编辑</a>  </div>
<?php }elseif($TableList[$i]['ProductTyle'] == "Clothing"){?>
<div class="LayerControl"><a href="__APP__/ClothingImportSheet/Edit2/ClothingImportSheetID/<?=$TableList[$i]['ID'];?>/List/1">编辑</a>  </div>
<?php }?>
</td>

<?php if($_SESSION['UserName'] != "ymx688"){?>
<td style="width: 22px; padding: 0px 0px 0px 5px; min-width: 22px; "> 
<div class="LayerControl">    
<?php if($TableList[$i]['ProductTyle'] == "Shoes"){?>
<a href="__APP__/ImportSheet/Deleted/ImportSheetID/<?=$TableList[$i]['ImportSheetID'];?>/ImportProductSheetID/<?=$TableList[$i]['ID'];?>" >删除</a>  
<?php }elseif($TableList[$i]['ProductTyle'] == "Clothing"){?>
<div class="LayerControl"><a href="__APP__/ClothingImportSheet/Deleted/ImportSheetID/<?=$TableList[$i]['ImportSheetID'];?>/ClothingImportSheetID/<?=$TableList[$i]['ID'];?>">删除</a>  </div>
<?php }?>
</div>
</td>
<?php }?>



<td style="white-space: nowrap; width: 22px; padding: 0px 0px 0px 5px; min-width: 22px; max-width: 50px;">  
<div class="LayerControl">
<?php if($TableList[$i]['ProductTyle'] == "Shoes"){?>
<a href="__APP__/ExportImportSheet/Export/ShoesProductID_List/<?=$TableList[$i]['ID'];?>" style="white-space: nowrap;">导出</a>
<?php }else {?>
<a href="__APP__/ExportImportSheet/Export/ClothingProductID_List/<?=$TableList[$i]['ID'];?>" style="white-space: nowrap;">导出</a>
<?php }?>
</div>
</td>

<td style="white-space: nowrap; width: 55px; padding: 0px 0px 0px 5px; min-width: 55px; max-width: 55px;">  
<div class="LayerControl">
<?php if($TableList[$i]['ProductTyle'] == "Shoes"){?>
<a onClick="AutoImport('Shoes', '<?=$TableList[$i]['ID'];?>');" style="white-space: nowrap;">自动导入</a>
<?php }else {?>
<a onClick="AutoImport('Clothing', '<?=$TableList[$i]['ID'];?>');" style="white-space: nowrap;">自动导入</a>
<?php }?>
</div>
</td>



<td style="white-space: nowrap; width: 22px; padding: 0px 0px 0px 5px; min-width: 22px; max-width: 50px;">  
<div class="LayerControl">
<?php if($TableList[$i]['ProductTyle'] == "Shoes"){?>
<a href="__APP__/ImportSheet/CopyImportProductSheet/ImportProductSheetID/<?=$TableList[$i]['ID'];?>" style="white-space: nowrap;">克隆</a>
<?php }else {?>
<a href="__APP__/ClothingImportSheet/CopyClothingImportSheet/ClothingImportSheetID/<?=$TableList[$i]['ID'];?>" style="white-space: nowrap;">克隆</a>
<?php }?>
</div>
</td>


<?php for($j=0; $j < count($TableFieldsInfo); $j++){?>
<?php if($TableFieldsInfo[$j]['Field'] == "TimeUpdated" || $TableFieldsInfo[$j]['Field'] == "TimeCreated"){?>
 <td style="text-align: center; white-space: normal; min-width: 32px; "><?=date("Y/m/d H:i:s",strtotime($TableList[$i][$TableFieldsInfo[$j]['Field']]))?></td>
 <?php }else { ?>

 <?php if(($TableInfo[0]['Table'] == "Tables" || $TableInfo[0]['Table'] == "TableFields") && $TableFieldsInfo[$j]['Field'] == "Table" || $TableFieldsInfo[$j]['Field']== "Alias"){?>

 <td style="text-align: center; white-space: normal; min-width: 32px; "><a href="__APP__/TableView/Index/TableName/<?=$TableList[$i]['Table']?>"><?=$TableList[$i][$TableFieldsInfo[$j]['Field']]; ?></a></td>

<?php }else{?>
 <td style="text-align: center; min-width: 32px;  white-space:normal;">

 <?php if($TableList[$i]['ProductTyle'] == "Shoes"){?>
 <a name="KeyValue4" href="__APP__/ImportSheet/View/ImportProductSheetID/<?=$TableList[$i]['ID'];?>"><?=$TableList[$i][$TableFieldsInfo[$j]['Field']]; ?></a>

<?php }elseif($TableList[$i]['ProductTyle'] == "Clothing"){?>

 <a name="KeyValue4" href="__APP__/ClothingImportSheet/View/ClothingImportSheetID/<?=$TableList[$i]['ID'];?>"><?=$TableList[$i][$TableFieldsInfo[$j]['Field']]; ?></a>

<?php }?>
</td>

<?php }?>
<?php }?>
<?php }?>

<td style="text-align: center; white-space: normal; min-width: 32px; "> 
<div class="LayerControl">
<?php if($TableList[$i]['ProductTyle'] == "Shoes"){?>
<b>鞋靴</b>
<?php }else if($TableList[$i]['ProductTyle'] == "Clothing") {?>
<b>服装</b>
<?php }?>
</div>
</td>

</tr>
<?php }?>
</tbody>
</table>
<div class="Pagination"><?=$page?></div>
</td>      
</tr>    
</tbody>
</table>
</form>
 </div>
 </div>
 <div id="Footer" style="width: 1350px;"> 
	<div class="Email">Email: ymx688_cs@163.com</div>
	<div class="Version"><?=C("VERSION")?></div>
	<div class="Copyright">冀ICP备12021992号-2</div>  
 </div>
</div>
<script type="text/javascript"> 
SetLayoutHeight();   
</script>
</body></html>